Support 16bit formats in the png loader
authorMatthias Clasen <mclasen@redhat.com>
Wed, 15 Sep 2021 04:41:40 +0000 (00:41 -0400)
committerBenjamin Otte <otte@redhat.com>
Fri, 17 Sep 2021 00:02:51 +0000 (02:02 +0200)
commitb226478e8b4adf7ac5dbe2c18141518b393cc809
tree2dd989a48f6957367820d1bd4fe4193a46453f4d
parent14280b5f5bff7720f20b79ba966da15f8437dab0
Support 16bit formats in the png loader

When loading, convert all >8-bit data to
GDK_MEMORY_R16G16B16A16_PREMULTIPLIED.

When saving, save all 8-bit formats as 8-bit RGBA,
and save all >8-bt formats as 16-bit RGBA.
gdk/loaders/gdkpng.c